<?php
namespace Client\Model;
use Think\Model\RelationModel;
class ScenicModel extends RelationModel{
	protected  $_link = array(
			'Scenic' =>array(
					'mapping_type'  => self::BELONGS_TO,
					'foreign_key'   => 'scenic_id',
					'mapping_fields'=> 'name,address,latitude,longitude',
					'as_fields'     => 'name:scenic_name,address:scenic_address,latitude:scenic_latitude,longitude:scenic_longitude',
			),
	);
}
?>